<?php
/**
 * Created by PhpStorm.
 * User: madong
 * Date: 2018/10/18
 * Time: 11:01 PM
 */

namespace app\api\controller\jiaoyi;


use think\Controller;
use think\Db;
use think\Request;

class Hangqing extends Controller
{
    //获取行情所有行情
    public function Get_coin_hangqing(){

        $res = Request::instance();

        $data = Db::name('hangqing')->where('id',1)->select();

        if ($data){

            echo json_encode(['zt'=>1,'msg'=>$data]);

        }else{

            echo json_encode(['zt'=>1,'msg'=>'行情获取失败...']);

        }

    }

}